package com.zhanghw.shop.controller.admin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 仪表板 Controller
 *
 * @author xyz
 * @date 2018/10/26
 */
@Controller
@RequestMapping(value = "/admin")
public class DashboardController {

    private static final Logger logger = LoggerFactory.getLogger(DashboardController.class);


    @GetMapping("")
    String index(Model model){

        return "/admin/index";
    }


    @GetMapping("/dashboard")
    String dashboard(Model model){

        return "/admin/home/dashboard";
    }

}